FROM registry.cn-qingdao.aliyuncs.com/qinyeinfo/jdk8:u162
ENV APP_RUN_HOME /app
ENV PROJECT_NAME RestaurantChainAdmin
ENV APP_NAME restaurant_chain_admin
COPY ./springstage-launch/target/springstage-launch.jar $APP_RUN_HOME/app.jar
RUN mkdir -p $APP_RUN_HOME/logs $APP_RUN_HOME/webupload /$APP_NAME/static
WORKDIR $APP_RUN_HOME
ENTRYPOINT ["java","-server","-Xms1024m","-Xmx2048m","-XX:MaxMetaspaceSize=512m","-Djava.security.egd=file:/dev/./urandom","-Dfile.encoding=UTF-8","-jar","-Dspring.profiles.active=production","app.jar"]
EXPOSE 8080
